//
//  NewsCommentCell.h
//  SportSocial
//
//  Created by yull on 15/1/5.
//  Copyright (c) 2015年 yull. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NewsComment.h"

@protocol NewsCommentCellDelegate <NSObject>

- (void)onHeadImageClick:(NewsComment *)comment;

@end

@interface NewsCommentCell : UITableViewCell

@property (nonatomic, strong) NewsComment *comment;

@property (nonatomic, strong) UIImageView *userIconImageView;

@property (nonatomic, strong) UILabel *userNameLabel;

@property (nonatomic, strong) UILabel *timeLabel;

@property (nonatomic, strong) UILabel *commentLabel;

@property (nonatomic, assign) id <NewsCommentCellDelegate> delegate;

+ (CGFloat) calculateCommentHeight:(NSString *)commentText;

- (void)drawCellWithComment:(NewsComment *)newsComment;

@end
